/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.kj.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * kj_project_phaseEntity
 * @author hzy
 * @version 2021-07-22
 */
@Table(name="kj_project_phase", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="content", attrName="content", label="内容", isQuery=false),
		@Column(name="title", attrName="title", label="标题", queryType=QueryType.LIKE),
		@Column(name="publish_time", attrName="publishTime", label="发布时间"),
		@Column(includeEntity=DataEntity.class),
		@Column(name="project_id", attrName="projectId", label="项目id"),
		@Column(name="project_name", attrName="projectName", label="项目名"),
	}, orderBy="a.update_date DESC"
)
public class KjProjectPhase extends DataEntity<KjProjectPhase> {

	private static final long serialVersionUID = 1L;
	private String content;		// 内容
	private String title;		// 标题
	private Date publishTime;		// 发布时间
	private String projectId;		// 项目id
	private String projectName;

	public KjProjectPhase() {
		this(null);
	}

	public KjProjectPhase(String id){
		super(id);
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Length(min=0, max=255, message="标题长度不能超过 255 个字符")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	@Length(min=0, max=64, message="项目id长度不能超过 64 个字符")
	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
}
